#ifndef GV_MAINTENANCEALARMSETTINGDIALOG_H
#define GV_MAINTENANCEALARMSETTINGDIALOG_H
#include<QtGui>
#include <QtGui/QWidget>
#include <QtCore/QTextCodec>
#include <QDialog>
#include "ui_maintenancealarmsetting.h"
class QTimer;
enum{
    ALARMONBUTTON=0,
    ALARMOFFBUTTON,
    ALARMDETAILEDBUTTON,
    ALARM1EBUTTON,
    ALARM2EBUTTON,
    ALARM3EBUTTON
};
class GV_MaintenanceAlarmsettingDialog:public QDialog, public Ui::MaintenanceAlarmsettingDialog
{
    Q_OBJECT
signals:
    void currentTime();
public:
    GV_MaintenanceAlarmsettingDialog(QWidget *parent = 0);

    QTimer *timer;
private slots:
    void GV_chTime();
    void home();
    void DecreaseButtonClicked();
    void IncreaseButtonClicked();
    void ValueRefresh();
    void AlarmOnSelectButtonClicked();
    void AlarmOffSelectButtonClicked();
    void Alarm1eButtonClicked();
    void Alarm2eButtonClicked();
    void Alarm3eButtonClicked();
    void AlarmDetailedClicked();

private:
    int AlarmSettingFrameButtonSelection;
    int AlarmOnOffSettingFrameButtonSelection;
    int Value1eAlarmOn;
    int Value2eAlarmOn;
    int Value3eAlarmOn;
    int Value1eAlarmOff;
    int Value2eAlarmOff;
    int Value3eAlarmOff;
    int ValueAlarmNow;

    void reloadtext();
};
#endif // GV_MAINTENANCEALARMSETTINGDIALOG_H
